Skip to content

Replace default sign out flow with conditional confirmation - #4628

Merged
ThaminduDilshan merged 1 commit into
thunder-id:mainfrom
ZiyamSanthosh:default-logout-flow
Aug 7, 2026
Merged

Replace default sign out flow with conditional confirmation#4628
ThaminduDilshan merged 1 commit into
thunder-id:mainfrom
ZiyamSanthosh:default-logout-flow

Conversation

@ZiyamSanthosh

@ZiyamSanthosh ZiyamSanthosh commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fixes #4622

This PR introduces the conditional confirmation included sign out flow as the default sign out flow in the default resources file which is used to create default resources during setup.

Approach

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the contribution guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
    • Ran Vale and fixed all errors and warnings
  • Tests provided. (Add links if there are any)
    • Unit Tests
    • Integration Tests
  • Breaking changes. (Fill if applicable)
    • Breaking changes section filled.
    • breaking change label added.

Security checks

  • Followed secure coding standards in WSO2 Secure Coding Guidelines
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.

Summary by CodeRabbit

  • New Features
    • Added optional confirmation before signing out.
    • Users can confirm or cancel the sign-out action through the updated flow.
  • Improvements
    • Updated the default sign-out workflow layout for clearer navigation and presentation.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The default sign-out flow now supports optional confirmation. Incomplete sign-out execution opens a confirmation prompt, and confirmation returns to sign-out. Node dimensions and positions were updated.

Changes

Sign-out confirmation

Layer / File(s) Summary
Configure sign-out confirmation flow
backend/cmd/server/bootstrap/01-default-resources.yaml
SessionSignOutExecutor sets promptOnSignOut to false. Incomplete execution routes to a confirmation prompt. The confirm action loops back to sign-out, replacing the direct path to end. Node layouts and sizes were updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: madurangasiriwardena, donomalvindula, pasinduyeshan

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: replacing the default sign-out flow with conditional confirmation.
Description check ✅ Passed The description explains the purpose and implementation scope and links the related issue, but the Approach section is empty and checklist items remain unchecked.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@backend/cmd/server/bootstrap/01-default-resources.yaml`:
- Around line 593-597: Update the SessionSignOutExecutor configuration by
setting promptOnSignOut to true so onIncomplete: prompt_confirm can handle
required logout confirmation, while retaining conditional no-prompt behavior
when RuntimeKeyLogoutPromptRequired is false.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f46600d0-58ff-4764-bc03-26ddb121a251

📥 Commits

Reviewing files that changed from the base of the PR and between 5e7daef and adb6c29.

📒 Files selected for processing (1)
  • backend/cmd/server/bootstrap/01-default-resources.yaml

Comment thread backend/cmd/server/bootstrap/01-default-resources.yaml
@ZiyamSanthosh ZiyamSanthosh added Type/Improvement trigger-pr-builder Add when the PR is ready for CI; starts the PR Builder for this and all later pushes labels Aug 6, 2026
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ThaminduDilshan
ThaminduDilshan added this pull request to the merge queue Aug 7, 2026
Merged via the queue into thunder-id:main with commit b0ae6ff Aug 7, 2026
65 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trigger-pr-builder Add when the PR is ready for CI; starts the PR Builder for this and all later pushes Type/Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sign out fails for Console logout when prompt confirmation is enabled

2 participants